﻿using System;
using CompactMapper.Orm.Annotations;
using CompactMapper.Orm.Contracts;
using CompactMapper.Orm.UnitOfWork.Mappings;

namespace CompactMapper.Orm.Tests.Transactions
{
    [Table]
    public class TransactionsChild : IKeyedPersistent
    {
        [GuidPrimaryKey]
        public IKey Key { get; set; }
        [TextColumn]
        public String Name { get; set; }
            
        public TransactionsChild()
        {
            Key = AbstractKeyFactory.For<Guid>().New();
        }
    }
}